home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16215 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.sprintlink.net!datalytics!usenet
  2. From: Rob Stewart <stew@datalytics.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: *****beginer question******unresolved external symbol
  5. Date: Tue, 09 Apr 1996 16:59:38 -0400
  6. Organization: Datalytics, Inc
  7. Message-ID: <316ACFBA.3483@datalytics.com>
  8. References: <4kcof4$9h1@ddi2.digital.net>
  9. NNTP-Posting-Host: 204.62.224.71
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Kenzo wrote:
  16. [snip]
  17. > Compiling...
  18. > avltree.cpp
  19. > Linking...
  20. > avltree.obj : error LNK2001: unresolved external symbol "class ostream
  21. > & __cdecl operator<<(class ostream &,class String const
  22. > &)"(??6@YAAAVostream@@AAV0@ABVString@@@Z)
  23. > avltree.obj : error LNK2001: unresolved external symbol "public:
  24. [etc]
  25.  
  26. You have included the header for and are using a class called 
  27. String.  However, the linker can't find the object code for it.  
  28. You either need to add another .cpp (string.cpp?) to your 
  29. project, or you need to link with the library containing 
  30. String's object code (or, in the case of a DLL import library, 
  31. the DLL stubs).
  32.  
  33. -- 
  34. Robert Stewart        | My opinions are usually my own.
  35. Datalytics, Inc.    | stew@datalytics.com
  36.